package com.pivotal.cloud.common.persistence.object.entity;

import com.pivotal.cloud.common.persistence.Entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * @className: com.pivotal.cloud.common.persistence.object.entity.BaseEntity
 * @projectName: PivotalCloud项目
 * @module: PivotalCloud项目-BaseEntity类，主要位于Common基础设施层模块-基础实体类(BaseEntity)
 * @content: BaseEntity--基础实体类(BaseEntity)
 * @author: Powered by Marklin
 * @datetime: 2025-11-07 02:41
 * @version: 1.0.0
 * @copyright: Copyright © 2018-2025 PivotalCloud Systems Incorporated. All rights
 * reserved.
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public abstract class BaseEntity implements Entity {

	/**
	 * 描述信息
	 */
	private String context;

	/**
	 * 排序序号
	 */
	private Integer sortOrder;

	/**
	 * 版本号
	 */
	private Integer version;

	/**
	 * 创建人
	 */
	private Long creatorId;

	/**
	 * 创建时间
	 */
	private LocalDateTime createdTime;

	/**
	 * 更新人
	 */
	private Long updaterId;

	/**
	 * 更新时间
	 */
	private LocalDateTime updatedTime;

	/**
	 * 逻辑删除
	 */
	private Integer deleted;

	/**
	 * 版本号
	 */
	private Integer status;

	/**
	 * 备注
	 */
	private String remark;

}
